<?php 
include_once 'connexpdo.php';
function test() {
	global $connexion;
	$requete = 'SELECT * FROM bungalow;';
	$result = $connexion->query ( $requete );
	$result->setFetchMode ( PDO::FETCH_OBJ );
	if ($result->rowCount () < 1) {
                $corps = 'Connexion impossible';
	}
	else
		while ( $OneRow = $result->fetch () ){
	}
	$result->closeCursor ();
}






?>